package com.sebiotec.glp.limoapp.net;



import com.allen.library.APi.BaseApi;
import com.sebiotec.glp.limoapp.model.MscCount;
import com.sebiotec.glp.limoapp.model.NoticeMsg;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface MainAPi  {


    @Headers({"Content-Type: application/json","Accept: application/json"})
    @POST("/api/FCMToken")
    Observable<ResponseBody>FCMToken(@HeaderMap Map<String, Object> headers);



    @GET("/api/Message/Notifaction/{Id}")
    Observable<NoticeMsg> getMessage(@HeaderMap Map<String, Object> headers, @Path("Id") int Id);



    @GET("/api/Messages/")
    Observable<MscCount> getMessageCount(@HeaderMap Map<String, Object> headers);




}
